<script>
jQuery(document).ready(function($){	

	$("#voltar").click(function() {

		var url = "<?php echo WWW_APP.'history/index'?>"; 

		window.location.href = url;
	}); 
});
</script>
<div class="units">
	<?php 
	if(!empty($allExams)) {
	?>
	<ul>
		<?php 
		$i = 1;
		foreach($allExams as $key=>$value) {
		?>
			<li>
				<a href="<?php echo WWW_APP.'history/questions/unit/'.$unitid.'/exam/'.$value->id?>"><?php echo "Tentativa ".$i." - Nota: ".$value->note; ?></a>
			</li>
		<?php 
			$i++;
		}
		?>
	</ul>	
	<?php 
	}else {
	?>
		Aluno não fez nenhuma prova ainda.	
		<br class="clear" />
	<?php 	
	}
	?>
	<br class="clear" />
	<input id="voltar" type="button" value="Voltar" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only">
</div>